﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using com.cruxomatic.web.wrokflows;

public partial class TestHarness_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        WorkflowManager manager = new WorkflowManager();
        int id = manager.CreateWorkflowInstance("CruxSampleWorkflow", "Some Comments", "Start", "rajiv", null);
        Console.WriteLine("Starting Action...");
        Console.ReadLine();
        manager.FireActionOnWorkflowInstance(id, "IndividualLotManagement", "More Comments", "rajiv", null, true);
    }
}